package com.sky.mapper;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 符健清
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Mapper
public interface DishFlavorMapper {

    /**
     * 更新 dishFlavor
     * @param dishFlavor
     */

    void updateDishFlavor(DishFlavor dishFlavor);

    /**
     * 添加口味
     * @param dishFlavor
     */
    void insetDishFlavor(DishFlavor dishFlavor);

    /**
     * 根据dish_id 查询数据
     * @param id
     * @return
     */
    @Select("SELECT * FROM dish_flavor where dish_id =#{dishId}")
    List<DishFlavor> selectDishFlavorByDishId(Object dishId);
}
